
Ext.define('IAG.view.settings.Settings' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.settings',

    layout: 'fit',
    autoShow: true,

    store: 'SettingsInstanceStore',

    columns: [
              {header: 'Db Id',  dataIndex: 'id',  flex: 1},
              {header: 'Refresh Type',  dataIndex: 'refreshType',  flex: 1},
              {header: 'How often', dataIndex: 'howOften', flex: 1},
              {header: 'Day of week',  dataIndex: 'dayOfWeek',  flex: 1},
              {header: 'Day of month',  dataIndex: 'dayOfMonth',  flex: 1},
              {header: 'Time',  dataIndex: 'time',  flex: 1},
              {header: 'Enabled',  dataIndex: 'enabled',  flex: 1}
              ],
	  buttons:[
	           {
	        	   text: 'Add Settings',
	        	   iconCls: 'addButton',
	        	   action: 'showAddSettings'
	           },
	           {
	        	   text: 'Reload',
	        	   action: 'reloadSettings'
	           }
	           ]
    
});

